home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / ds5000.md / sys / RCS / machSignal.h,v < prev   
Encoding:
Text File  |  1991-09-25  |  2.5 KB  |  107 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     91.09.24.21.30.51;  author shirriff;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     91.08.26.14.44.23;  author shirriff;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @Fixed the sigcontext declaration since it was the old, bogus one.
  27. @
  28. text
  29. @/*
  30.  * Copyright (c) 1991, Regents of the University of California.
  31.  * All rights reserved.  The Berkeley software License Agreement
  32.  * specifies the terms and conditions for redistribution.
  33.  *
  34.  *    @@(#)machSignal.h    7.3 (Berkeley) 5/14/88
  35.  * $Header: /sprite/src/lib/include/ds3100.md/sys/RCS/machSignal.h,v 1.1 91/08/26 14:44:23 shirriff Exp Locker: shirriff $
  36.  */
  37.  
  38. #ifndef _SYS_SIGNAL
  39. #define _SYS_SIGNAL
  40. /*
  41.  * Information pushed on stack when a signal is delivered.
  42.  * This is used by the kernel to restore state following
  43.  * execution of the signal handler.  On some systems it is also made
  44.  * available to the handler to allow it to properly restore state if a
  45.  * non-standard exit is performed.  However, user programs should not
  46.  * rely on having access to this information.
  47.  */
  48. /*
  49.  * WARNING: THE sigcontext MUST BE KEPT CONSISTENT WITH /usr/include/setjmp.h
  50.  * AND THE LIBC ROUTINES setjmp() AND longjmp()
  51.  */
  52. /*
  53.  * This declaration comes from:
  54.  * /sprite/src/kernel/mach/ds3100.md/ultrixSignal.h.
  55.  */
  56. struct    sigcontext {
  57.     int    sc_onstack;        /* sigstack state to restore */
  58.     int    sc_mask;        /* signal mask to restore */
  59.     int    sc_pc;            /* pc at time of signal */
  60.     /*
  61.      * General purpose registers
  62.      */
  63.     int    sc_regs[32];    /* processor regs 0 to 31 */
  64.     int    sc_mdlo;    /* mul/div low */
  65.     int    sc_mdhi;    /* mul/div high */
  66.     /*
  67.      * Floating point coprocessor state
  68.      */
  69.     int    sc_ownedfp;    /* fp has been used */
  70.     int    sc_fpregs[32];    /* fp regs 0 to 31 */
  71.     int    sc_fpc_csr;    /* floating point control and status reg */
  72.     int    sc_fpc_eir;    /* floating point exception instruction reg */
  73.     /*
  74.      * END OF REGION THAT MUST AGREE WITH setjmp.h
  75.      * END OF jmp_buf REGION
  76.      */
  77.     /*
  78.      * System coprocessor registers at time of signal
  79.      */
  80.     int    sc_cause;    /* cp0 cause register */
  81.     int    sc_badvaddr;    /* cp0 bad virtual address */
  82.     int    sc_badpaddr;    /* cpu bd bad physical address */
  83. };
  84. #endif /* _SYS_SIGNAL */
  85. @
  86.  
  87.  
  88. 1.1
  89. log
  90. @Initial revision
  91. @
  92. text
  93. @d7 1
  94. a7 1
  95.  * $Header: /sprite/src/lib/include/RCS/signal.h,v 1.10 90/12/18 18:39:43 kupfer Exp $
  96. d20 8
  97. d31 24
  98. a54 5
  99.     int    sc_sp;            /* sp to restore */
  100.     int    sc_fp;            /* fp to restore */
  101.     int    sc_ap;            /* ap to restore */
  102.     int    sc_pc;            /* pc to restore */
  103.     int    sc_ps;            /* psl to restore */
  104. a55 1
  105.  
  106. @
  107.